<!--响应式数据判断-->
<template>

</template>

<script setup lang="ts">
    import {ref,reactive,readonly,isRef,isReactive,isReadonly,isProxy} from 'vue'
    let car = reactive({name:'长安逸动',price:'100000'})
    let sum = ref(0)
    let car2 = readonly(car)

    console.log('------------')
    console.log(isRef(sum)) // true
    console.log(isReactive(car)) // true
    console.log(isReadonly(car2)) // true
    console.log(isProxy(sum)) // false
    console.log(isProxy(car)) // true
    console.log('---------------')
</script>

<style scoped lang="less">

</style>
